package org.microservice.system.service.impl;

import org.microservice.system.dao.SysGeneratorDao;
import org.microservice.system.service.SysGeneratorService;
import org.microservice.system.utils.dto.ColumnEntity;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * Created with IntelliJ IDEA.
 * User: 齐丹枫
 * Date: 2018/7/25
 * Time: 15:50
 * To change this template use File | Settings | File Templates.
 * Description:
 */
@Service
public class SysGeneratorServiceImpl implements SysGeneratorService {

    @Autowired
    private SysGeneratorDao sysGeneratorDao;

    @Override
    public List<Map<String,Object>> getTableListPage(Map<String, Object> params) {

        return sysGeneratorDao.getTableListPage(params);
    }

    @Override
    public int getTableListPageTotal(Map<String, Object> params) {
        return sysGeneratorDao.getTableListPageTotal(params);
    }

    @Override
    public List<ColumnEntity> getTableColumns(String tableName) {
        return sysGeneratorDao.getTableColumns(tableName);
    }


}
